package com.pro.mapper;

import com.pro.entry.JsBeforeUser;
import org.apache.ibatis.annotations.Param;

/**
 * @Author 谭金诚
 * @Description TODO
 * @Date 2022/4/7 9:22
 * @Version 1.0
 */
public interface LoginMapper {

    //根据账号密码登录
    JsBeforeUser getLogin(JsBeforeUser beforeUser);

    //根据手机验证码登录
    JsBeforeUser getLoginByPhone(String phone);

    //通过openId查询微信用户
    JsBeforeUser getLoginByWX(JsBeforeUser beforeUser);

    //添加微信用户
    boolean addLoginByWX(JsBeforeUser beforeUser);

    //重置密码
    boolean updateUserPWD(@Param("phone") String phone, @Param("password") String password);

    //添加用户
    boolean addBeforeUser(JsBeforeUser beforeUser);
}
